package com.zhkc.wisdom.common.mybatis.handler;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.stereotype.Component;

/**
 * Description: MyBatisPlus属性填充
 * User: zzw
 * Date: 2023-09-06
 * Time: 16:12
 * company: zhkc
 */
@Component
public class MyBatisPlusMetaHandler implements MetaObjectHandler {
    /**
     * @Description
     * @Author zzw
     * @Date 14:23 2023/8/17
     **/
    @Override
    public void insertFill(MetaObject metaObject) {
        System.out.println(111);
    }

    /**
     * @Description TODO 更新时自动填充
     * @Author zzw
     * @Date 14:23 2023/8/17
     **/
    @Override
    public void updateFill(MetaObject metaObject) {
        System.out.println(111);
    }
}
